package com.hotel.project.demo.dao.hotel;

import com.hotel.project.demo.dao.ICurdDao;
import com.hotel.project.demo.domain.HotelEntity;
import com.hotel.project.demo.domain.HotelPictureEntity;
import com.hotel.project.demo.domain.common.HotelEvaluate;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HotelDao extends ICurdDao<HotelEntity> {
    HotelEvaluate getHotelEva(Long id);

    int updateHotelCache(Long id,Float evaluateScore, Integer evaluateCount,
                             Integer saleCount,Integer collectCount);

    int updateHotelStatus(Long id,Integer deleted);

}
